package com.chengyu.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chengyu.core.model.ReceiptUserOrder;
import com.chengyu.core.request.PageParamRequest;
import com.chengyu.core.response.ReceiptUserOrderDetailResponse;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 * 订单发票信息 服务类
 * </p>
 *
 * @author macro
 * @since 2024-01-17
 */
public interface ReceiptUserOrderService extends IService<ReceiptUserOrder> {

    /**
     * 获取列表
     *
     * @param request          请求参数
     * @param pageParamRequest 分页参数
     * @return PageInfo
     */
    PageInfo<ReceiptUserOrder> getList(ReceiptUserOrder request, PageParamRequest pageParamRequest);

    PageInfo<ReceiptUserOrderDetailResponse> getListWidthOrder(ReceiptUserOrder request, PageParamRequest pageParamRequest);



    /**
     * 详情
     *
     * @param id id
     * @return ReceiptUserOrderVo
     */
    ReceiptUserOrder getVoByFront(Integer id) ;


    /**
     * 获取详情
     *
     * @param id id
     * @return ReceiptUserOrder
     */
    ReceiptUserOrder getDetail(Integer id);

    ReceiptUserOrderDetailResponse getDetailWidthOrder(Integer id);

    /**
     * 增加浏览次数
     *
     * @param id id
     * @return
     */

     boolean addReceiptUserOrderVisit(Integer id);

    /**
     * 获取移动端热门列表
     *
     * @return List<ReceiptUserOrder>
     */
    List<ReceiptUserOrder> getHotList();

    /**
     * 新增
     *
     * @param articleRequest 新增参数
     * @return Boolean
     */
    Boolean create(ReceiptUserOrder articleRequest);
    /**
     * 修改
     *
     */
    Boolean pushReceiptUserOrder(ReceiptUserOrder articleRequest);
    /**
     * 修改
     *
     */
    Boolean updateReceiptUserOrder(ReceiptUserOrder articleRequest);

    /**
     * 删除
     *
     * @param id id
     * @return Boolean
     */
    Boolean deleteById(Integer id);

    Boolean deleteByIdWithMemberId(Integer id,Integer memberId);




    /**
     * 是否使用分类
     *
     * @param categoryId 分类ID
     * @return Boolean
     */
    Boolean isUseCategory(Integer categoryId);


    /**
     * 开关
     * @param id id
     * @return Boolean
     */
    Boolean ReceiptUserOrderSwitch(Integer id);





}
